<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
  <div id="box">
    {{wang}}-{{he}}
    <button @click="count++">点击</button>
    <p>哥哥下了{{count}}个只因</p>
  </div>
  <script>
    var box = new Vue({
      el:'#box',
      data:{
          wang:'只因',
          he:'鸡',
          count:1,
      },
      methods:{
        count(){
          console.log(666);
        }
      }
    })
  </script>
</body>
</html>